# 执行SQL脚本插入企业和求职者数据
Write-Host "正在插入企业和求职者数据..." -ForegroundColor Green

# 使用Start-Process来执行mysql命令，这样可以正确处理密码输入
Start-Process -FilePath "mysql" -ArgumentList "-u", "root", "-p", "springbootjlvpc", "-e", "source $PSScriptRoot\insert_data.sql" -Wait -NoNewWindow

Write-Host "数据插入完成！" -ForegroundColor Green
Read-Host "按Enter键继续..."
mysql -u root -p springbootjlvpc
source d:\就业\springboot-schema-master\springboot-schema-master\db\insert_data.sql
